<template>
  <!--测试 emitRef-->
  <el-input v-model="val" placeholder="测试 emitRef"></el-input>
  ({{val}})
</template>

<script lang="ts">
  import { defineComponent } from 'vue'

  import emitRef from '../../../../lib/base/ref/ref-emit'

  export default defineComponent({
    name: 'nf-demo-base-emit',
    components: {
    },
    props: {
      modelValue: {
        type: [String, Number, Boolean, Date]
      }
    },
    emits: ['update:modelValue'],
    setup(props, context) {

      const val = emitRef(props, context.emit, 'modelValue')
 
      return {
        val
      }
    }
  })
</script>